package model;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.image.BufferedImage;



public abstract class Mob extends MapObject{
	
	private int hp;
	private int speed;
	private BufferedImage img;
	private boolean alive = true;
	private boolean movable = true; 
	
	
	public Mob(Location location,int hp, int speed){
		super(location);
		this.hp = hp;
		this.speed = speed;
			
	}
	
	public abstract void readPic();
	
	public abstract Location movement(Field field);
	
	
	public int getHp() {
		return hp;
	}
	public void setHp(int hp) {
		this.hp = hp;
	}
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	
	public BufferedImage getImg() {
		return img;
	}
	public void setImg(BufferedImage img) {
		this.img = img;
	}
	
	@Override
	public boolean isAlive() {
		return alive;
	}

	public void setAlive(boolean alive) {
		this.alive = alive;
	}

	@Override
	public boolean isMovable() {
		return movable;
	}

	public void setMovable(boolean movable) {
		this.movable = movable;
	}
	
	
	

}
